package com.hyz.assetManager.mapper;

import com.hyz.assetManager.pojo.AssetInbound;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pojo.permissions.assetManager.AssetInboundStatusResponse;

import java.util.List;

/**
 * @author HGD
 * @date 2022/9/30 14:06
 */
@Mapper
public interface AssetInboundMapper {
    /**
     * 创建资产分库申请
     *
     * @param assetInbound 资产分库申请
     */
    void createAssetInbound(@Param("assetInbound") AssetInbound assetInbound);

    /**
     * 根据资产管理员id获取所有资产分库状态
     *
     * @param assetManagerId  资产管理员id
     * @return 资产分库状态
     */
    List<AssetInboundStatusResponse> getAssetInboundStatus(@Param("assetManagerId") Long assetManagerId);
}
